<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="renderer" content="webkit"/>
    <meta name="force-rendering" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <title>会员列表</title>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="../css/shop.css">
    <link rel="stylesheet" href="../css/weui.min.css">
    <link rel="stylesheet" href="../css/jquery-weui.min.css">
    <script src="../js/jquery-2.1.4.js"></script>
    <script src="../js/jquery-weui.js"></script>
    <script src="../wxJs/utils/contain.js"></script>
    <script src="../wxJs/utils/storage.js"></script>
</head>
<body>
<div class="header">
    <a class="haader-left" href="javascript:window.history.go(-1)"><i class="iconfont icon-left"></i></a>
    <div class="haader-content">会员列表</div>
    <div class="haader-right">
     <!--    <i class="iconfont icon-riqi"></i>&nbsp;
        <i class="iconfont icon-shaixuan"></i>-->
    </div>
</div>
<!--<div class="weui-search-bar" id="searchBar">
    <form class="weui-search-bar__form" action="#">
        <div class="weui-search-bar__box">
            <i class="weui-icon-search"></i>
            <input type="search" class="weui-search-bar__input" id="searchInput" placeholder="搜索" required="">
            <a href="javascript:void(0)" class="weui-icon-clear" id="searchClear"></a>
        </div>
        <label class="weui-search-bar__label" id="searchText"
               style="transform-origin: 0px 0px 0px; opacity: 1; transform: scale(1, 1);">
            <i class="weui-icon-search"></i>
            <span>搜索</span>
        </label>
    </form>
    <a href="javascript:" class="weui-search-bar__cancel-btn" id="searchCancel">取消</a>
</div>-->
<div id="vipList">

</div>

<link rel="stylesheet" href="../css/weui.min.css">
<link rel="stylesheet" href="../css/jquery-weui.min.css">
<script src="../js/jquery-2.1.4.js"></script>
<script src="../js/jquery-weui.js"></script>
<script>
    var shopId = GetQueryString("shopId")
    if (!shopId){
        window.history.back(-1);
    }
    $("#searchInput").val()
    $.post(getWeiContextPath() + "/wx/shop/queryVipList", {shopId:shopId}, function (res) {
            console.log(res)
            var _vipList=$('#vipList')
        $.each(res,function (i, obj) {
            var phoneNum=""
            if (obj.phoneNum){
                phoneNum= obj.phoneNum
            }
            _vipList.append('<a class="order-item flex" href="javascript:void(0)">\n' +
                '        <div class="image-contain  iconfont icon-user1"></div>\n' +
                '        <div class="flex column">\n' +
                '            <div class="flex between top-info">\n' +
                '                <div class="name">'+obj.nickName+'</div>\n' +

                '            </div>\n' +
                '            <div class="flex between btm-info">\n' +
                '                <div>'+phoneNum+'</div>\n' +

                '            </div>\n' +
                '        </div>\n' +
                '    </a>')
        })
    })
</script>
</body>

</html>